package fly.util;

import fly.help.ArraySupport;
import fly.help.PrintSupport;

import java.util.Arrays;
import java.util.TimeZone;

public class TimeZoneAbsDemo {

    static void staticDemo1(){
        PrintSupport.sout(1);

        System.out.println(
                Arrays.toString(
                        TimeZone.getAvailableIDs()
                ));

        PrintSupport.sout(2);

        System.out.println(
                Arrays.toString(
                        TimeZone.getAvailableIDs(3600000)
                )
        );

        PrintSupport.sout(3);

        System.out.println( TimeZone.getDefault().toString() );

        PrintSupport.sout(4);

        System.out.println( TimeZone.getTimeZone("Europe/Paris").toString() );

        PrintSupport.sout(5);

        System.out.println(
                TimeZone.getTimeZone(
                        TimeZone.getDefault().toZoneId()
                )
        );


    }


    public static void main(String[] args) {
        staticDemo1();

        PrintSupport.sout("2");

        System.out.println(
                ArraySupport.toString(
                        TimeZone.getAvailableIDs(8*60*60*1000)
                )

        );
    }
}
